﻿package Message.Game
{
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SLoginGameReturn extends Object
    {
        public var entityId:SEntityId;
        public var player:SPlayer;
        public var role:SRole;
        public var money:SMoney;
        public var pos:SPos;
        public var baseFight:SFightAttribute;
        public var sesionKey:SSessionKey;
        public var sysDt:Date;
        public var openDt:Date;
        public var innerServer:int;

        public function SLoginGameReturn()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            this.entityId.__write(param1);
            this.player.__write(param1);
            this.role.__write(param1);
            this.money.__write(param1);
            this.pos.__write(param1);
            this.baseFight.__write(param1);
            this.sesionKey.__write(param1);
            param1.writeDate(this.sysDt);
            param1.writeDate(this.openDt);
            param1.writeInt(this.innerServer);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.player = new SPlayer();
            this.player.__read(param1);
            this.role = new SRole();
            this.role.__read(param1);
            this.money = new SMoney();
            this.money.__read(param1);
            this.pos = new SPos();
            this.pos.__read(param1);
            this.baseFight = new SFightAttribute();
            this.baseFight.__read(param1);
            this.sesionKey = new SSessionKey();
            this.sesionKey.__read(param1);
            this.sysDt = param1.readDate();
            this.openDt = param1.readDate();
            this.innerServer = param1.readInt();
            return;
        }// end function

    }
}
